package com.cet.qz.unit01.chapter1_1;

import edu.princeton.cs.algs4.StdDraw;

import java.awt.*;

/**
 * @program: algorithm
 * @description:
 * @author: 陈恩涛
 * @create: 2020-12-06 22:30
 **/
public class DrawTest {
    public static void main(String[] args) {
        int N = 100;
        StdDraw.setXscale(0, N);
        StdDraw.setYscale(0, N*N);
        StdDraw.setPenRadius(.01);
        StdDraw.setPenColor(Color.blue);
        for(int i = 1; i <= N; ++i) {
            StdDraw.point(i, i);
            StdDraw.point(i, i*i);
            StdDraw.point(i, i*Math.log(i));
        }
    }
}
